package com.cnswhy.cloud.server.core.dto;

import java.math.BigDecimal;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.cnswhy.cloud.server.common.entity.enumeration.ExpressCompany;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.cnswhy.cloud.common.core.base.entity.SuperEntity;
import java.io.Serializable;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "BuyBackOrderUpdateDTO", description = "")
public class BuyBackOrderUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    @ApiModelProperty(value = "")
    private Long customerId;
    @ApiModelProperty(value = "")
    @Length(max = 11, message = "长度不能超过11")
    private String loginName;
    @ApiModelProperty(value = "")
    @NotEmpty(message = "不能为空")
    @Length(max = 50, message = "长度不能超过50")
    private String orderNum;
    @ApiModelProperty(value = "")
    @NotNull(message = "不能为空")
    private Long spellOrderId;
    @ApiModelProperty(value = "")
    @NotNull(message = "不能为空")
    private Long productId;
    @ApiModelProperty(value = "")
    @Length(max = 255, message = "长度不能超过255")
    private String productName;
    @ApiModelProperty(value = "")
    @Length(max = 255, message = "长度不能超过255")
    private String productImg;
    @ApiModelProperty(value = "")
    private BigDecimal orderPrice;
    @ApiModelProperty(value = "")
    private BigDecimal costPrice;
    @ApiModelProperty(value = "")
    private BigDecimal originalPrice;
    /**
     * 1待支付2待发货3待收货4待评价5完成
     */
    @ApiModelProperty(value = "1待支付2待发货3待收货4待评价5完成")
    private Integer status;
    /**
     * 1支付宝2微信
     */
    @ApiModelProperty(value = "1支付宝2微信")
    private Integer payType;
    @ApiModelProperty(value = "")
    private Long addressId;
    /**
     * 回购类型1客户购买2系统回购
     */
    @ApiModelProperty(value = "回购类型1客户购买2系统回购")
    private Integer backType;
    /**
     * 支付宝微信返回交易流水号
     */
    @ApiModelProperty(value = "支付宝微信返回交易流水号")
    @Length(max = 100, message = "支付宝微信返回交易流水号长度不能超过100")
    private String returnOrderNum;
    @ApiModelProperty(value = "")
    @Length(max = 50, message = "长度不能超过50")
    private String expressNo;
    @ApiModelProperty(value = "")
    //@Length(max = 50, message = "长度不能超过50")
    private ExpressCompany expressCompany;
    @ApiModelProperty(value = "回购日期")
    @Length(max = 50, message = "长度不能超过50")
    private String settDate;
}
